home *** CD-ROM | disk | FTP | other *** search
- package org.spruce.midp.driver;
-
- import java.util.Random;
-
- // $FF: renamed from: org.spruce.midp.driver.b
- final class class_0 {
- // $FF: renamed from: a int
- public static final int field_0 = 1;
- // $FF: renamed from: b int
- public static final int field_1 = 2;
- // $FF: renamed from: c int
- public static final int field_2 = -1;
- // $FF: renamed from: d int
- public static final int field_3 = 1;
- // $FF: renamed from: e int
- public static final int field_4 = 2;
- // $FF: renamed from: f int
- public static final int field_5 = 3;
- // $FF: renamed from: g int
- public int field_6;
- // $FF: renamed from: h int
- public int field_7;
- // $FF: renamed from: i int
- private static final int field_8 = 15;
- // $FF: renamed from: j int
- public static final int field_9 = 3;
- // $FF: renamed from: k int
- public static final int field_10 = 2;
- // $FF: renamed from: l int
- public static final int field_11 = 700;
- // $FF: renamed from: m int
- private static final int field_12 = 200;
- // $FF: renamed from: n int
- private static final int field_13 = 5;
- // $FF: renamed from: o int[]
- private int[] field_14;
- // $FF: renamed from: p int[]
- private int[] field_15;
- // $FF: renamed from: q int[]
- private int[] field_16;
- // $FF: renamed from: r int
- private int field_17;
- // $FF: renamed from: s int
- private int field_18;
- // $FF: renamed from: t int
- private int field_19 = 0;
- // $FF: renamed from: u int
- private int field_20;
- // $FF: renamed from: v int
- private int field_21 = 700;
- // $FF: renamed from: w int
- private int field_22;
- // $FF: renamed from: x java.util.Random
- private Random field_23 = new Random();
-
- public class_0(int var1, int var2) {
- this.field_7 = var1;
- this.field_6 = var2;
- this.field_14 = new int[this.field_6 + 2];
- this.field_15 = new int[this.field_6 + 2];
- this.field_16 = new int[this.field_6 + 2];
- this.field_17 = this.field_7 / 2;
- this.field_18 = this.field_6 - 1;
- int var3 = 0;
- if (Driver.p) {
- this.field_16[var3] = Integer.MIN_VALUE;
- ++var3;
- }
-
- while(var3 < this.field_16.length) {
- this.field_16[var3] = Integer.MIN_VALUE;
- ++var3;
- }
-
- }
-
- // $FF: renamed from: a () void
- public void method_0() {
- if (this.field_22 == 0) {
- --this.field_17;
- }
-
- }
-
- // $FF: renamed from: b () void
- public void method_1() {
- if (this.field_22 == 0) {
- ++this.field_17;
- }
-
- }
-
- // $FF: renamed from: c () boolean
- public boolean method_2() {
- if (this.field_22 == 0 && this.field_18 > 4) {
- --this.field_18;
- return true;
- } else {
- return false;
- }
- }
-
- // $FF: renamed from: d () boolean
- public boolean method_3() {
- if (this.field_22 == 0 && this.field_18 < this.field_6 - 2) {
- ++this.field_18;
- return true;
- } else {
- return false;
- }
- }
-
- // $FF: renamed from: e () int
- public int method_4() {
- boolean var3;
- int var10000;
- label194: {
- int var1;
- label197: {
- var3 = Driver.p;
- var1 = 0;
- var10000 = (this.field_19 + 15) % (this.field_6 * 200 * 15 / 700);
- if (!var3) {
- if (var10000 == 0) {
- var1 = -1;
- if (!var3) {
- break label197;
- }
- }
-
- var10000 = this.field_19 % 15;
- }
-
- if (var3) {
- break label194;
- }
-
- if (var10000 == 0) {
- var1 = Math.abs(this.field_23.nextInt()) % 2 + 1;
- }
- }
-
- ++this.field_19;
- System.arraycopy(this.field_14, 0, this.field_14, 1, this.field_14.length - 1);
- this.field_14[0] = var1;
- var10000 = Math.abs(this.field_23.nextInt() % this.field_7);
- }
-
- int var2;
- label183: {
- label182: {
- label198: {
- var2 = var10000;
- System.arraycopy(this.field_15, 0, this.field_15, 1, this.field_15.length - 1);
- this.field_15[0] = var2;
- var10000 = this.field_19 % 2;
- if (!var3) {
- if (var10000 == 0) {
- label206: {
- System.arraycopy(this.field_16, 0, this.field_16, 1, this.field_16.length - 1);
- class_0 var6 = this;
- if (!var3) {
- if (this.field_19 / 2 % 30 == 12) {
- this.field_16[0] = Math.abs(this.field_23.nextInt() % this.field_7);
- if (!var3) {
- break label206;
- }
- }
-
- var6 = this;
- }
-
- var6.field_16[0] = Integer.MIN_VALUE;
- }
- }
-
- this.method_5();
- this.field_17 += this.field_22;
- var10000 = this.field_22;
- if (var3) {
- break label198;
- }
- }
-
- if (var10000 > 0) {
- --this.field_22;
- --this.field_21;
- if (!var3) {
- break label182;
- }
- }
-
- var10000 = this.field_22;
- if (var3) {
- break label183;
- }
- }
-
- if (var10000 < 0) {
- ++this.field_22;
- --this.field_21;
- }
- }
-
- var10000 = this.field_17;
- }
-
- label161: {
- label200: {
- if (!var3) {
- if (var10000 >= 0) {
- var10000 = this.field_17;
- if (var3) {
- break label161;
- }
-
- if (var10000 < this.field_7) {
- break label200;
- }
- }
-
- var10000 = this.field_20;
- }
-
- if (var3) {
- break label161;
- }
-
- if (var10000 > 0) {
- label151: {
- --this.field_20;
- this.field_21 -= 5;
- var10000 = this.field_17;
- int var10001 = -3;
- if (!var3) {
- if (var10000 < -3) {
- this.field_17 = -3;
- if (!var3) {
- break label151;
- }
- }
-
- var10000 = this.field_17;
- if (var3) {
- break label161;
- }
-
- var10001 = this.field_7 + 3;
- }
-
- if (var10000 >= var10001) {
- this.field_17 = this.field_7 + 3 - 1;
- }
- }
- }
- }
-
- --this.field_21;
- var10000 = this.field_21;
- }
-
- if (!var3) {
- if (var10000 <= 0) {
- return 1;
- }
-
- int var4 = this.field_14[this.field_18];
- var2 = this.field_15[this.field_18];
- var10000 = var4;
- }
-
- int var10;
- label135: {
- label134: {
- if (!var3) {
- switch (var10000) {
- case 0:
- default:
- break;
- case 1:
- var10000 = Math.abs(var2 - this.field_17);
- if (var3) {
- return var10000;
- }
-
- if (var10000 < 2) {
- var10000 = 2;
- return var10000;
- }
-
- this.field_20 += 5;
- if (!var3) {
- break;
- }
- case 2:
- label204: {
- var10000 = Math.abs(var2 - this.field_17);
- if (!var3) {
- if (var10000 >= 2) {
- break label204;
- }
-
- this.field_22 = Math.abs(this.field_23.nextInt()) % 2 + 2;
- var10000 = this.field_23.nextInt();
- }
-
- if (!var3) {
- if (var10000 < 0) {
- this.field_22 *= -1;
- }
-
- var10000 = this.field_20;
- }
-
- if (var3) {
- break label134;
- }
-
- if (var10000 <= 0) {
- break;
- }
-
- --this.field_20;
- if (!var3) {
- break;
- }
- }
-
- ++this.field_20;
- if (!var3) {
- break;
- }
- case -1:
- var10000 = var2;
- var10 = this.field_17;
- if (var3) {
- break label135;
- }
-
- if (var2 == var10) {
- this.field_21 += 200;
- class_0 var8 = this;
- if (!var3) {
- if (this.field_21 > 700) {
- this.field_21 = 700;
- }
-
- this.field_20 += 10;
- var8 = this;
- }
-
- var8.field_14[this.field_18] = 0;
- }
- }
-
- var2 = this.field_16[this.field_18];
- var10000 = var2;
- }
-
- if (var3) {
- return var10000;
- }
- }
-
- var10 = Integer.MIN_VALUE;
- }
-
- if (var10000 != var10) {
- var10000 = Math.abs(var2 - this.field_17);
- if (var3) {
- return var10000;
- }
-
- if (var10000 < 2) {
- var10000 = 3;
- return var10000;
- }
-
- this.field_20 += 3;
- }
-
- var10000 = 0;
- return var10000;
- }
-
- // $FF: renamed from: f () void
- public void method_5() {
- // $FF: Couldn't be decompiled
- }
-
- // $FF: renamed from: g () int
- public int method_6() {
- return this.field_17;
- }
-
- // $FF: renamed from: h () int
- public int method_7() {
- return this.field_18;
- }
-
- // $FF: renamed from: i () int[]
- public int[] method_8() {
- return this.field_14;
- }
-
- // $FF: renamed from: j () int[]
- public int[] method_9() {
- return this.field_15;
- }
-
- // $FF: renamed from: k () int[]
- public int[] method_10() {
- return this.field_16;
- }
-
- // $FF: renamed from: l () int
- public int method_11() {
- return this.field_20;
- }
-
- // $FF: renamed from: m () int
- public int method_12() {
- return this.field_21;
- }
- }
-